package com.micromall.common.sms;

import java.util.Arrays;

/**
 * 139000短信网关发送结果
 * @author FelixWang
 * 
 */
public class SmsSendResult {
	private Integer successCount;
	private String[] successMobiles;
	private String[] faileMobiles;
	private String returnMsg;
	private Integer errorId;

	/**
	 * 获取成功条数
	 *
	 * @return
	 */
	public Integer getSuccessCount() {
		return successCount;
	}

	public void setSuccessCount(Integer successCount) {
		this.successCount = successCount;
	}

	/**
	 * 获取发送成功的手机号码
	 *
	 * @return
	 */
	public String[] getSuccessMobiles() {
		return successMobiles;
	}

	public void setSuccessMobiles(String[] successMobiles) {
		this.successMobiles = successMobiles;
	}

	/**
	 * 获取发送失败的手机号码
	 */
	public String[] getFaileMobiles() {
		return faileMobiles;
	}

	public void setFaileMobiles(String[] faileMobiles) {
		this.faileMobiles = faileMobiles;
	}

	/**
	 * 获取发送错误原因
	 */
	public String getReturnMsg() {
		return returnMsg;
	}

	public void setReturnMsg(String returnMsg) {
		this.returnMsg = returnMsg;
	}

	/**
	 * 获取具体错误编码
	 */
	public Integer getErrorId() {
		return errorId;
	}

	public void setErrorId(Integer errorId) {
		this.errorId = errorId;
	}

	@Override
	public String toString() {
		return "SmsSendResult{" +
				"successCount=" + successCount +
				", successMobiles=" + Arrays.toString(successMobiles) +
				", faileMobiles=" + Arrays.toString(faileMobiles) +
				", returnMsg='" + returnMsg + '\'' +
				", errorId=" + errorId +
				'}';
	}
}